/* 
 *   WWW.COO8.COM  
 */

package com.gm.memberShip.menu.model; 

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;


import java.util.*;
import org.apache.commons.lang.StringUtils;
 

import com.gm.memberShip.menu.model.*;
import com.gm.memberShip.menu.persistence.interfaces.*;
import com.gm.memberShip.menu.business.interfaces.*;  

/**
 * @author  JIANGCHENG
 * @version 1.0
 * @since 1.0
 */


public class Paths  implements java.io.Serializable {
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "Paths";
	public static final String ALIAS_APPLICATION_ID = "applicationId";
	public static final String ALIAS_PATH_ID = "pathId";
	public static final String ALIAS_PATH = "path";
	public static final String ALIAS_LOWERED_PATH = "loweredPath";
	
	 
	 
	//columns START
	private java.lang.Object applicationId;
	private java.lang.Object pathId;
	private java.lang.Object path;
	private java.lang.Object loweredPath;
	//columns END

	public Paths(){
	}

	public Paths(
		java.lang.Object pathId
	){
		this.pathId = pathId;
	} 
		 
	public void setApplicationId(java.lang.Object value) {
		this.applicationId = value;
	}
	
	public java.lang.Object getApplicationId() {
		return this.applicationId;
	}
		 
	public void setPathId(java.lang.Object value) {
		this.pathId = value;
	}
	
	public java.lang.Object getPathId() {
		return this.pathId;
	}
		 
	public void setPath(java.lang.Object value) {
		this.path = value;
	}
	
	public java.lang.Object getPath() {
		return this.path;
	}
		 
	public void setLoweredPath(java.lang.Object value) {
		this.loweredPath = value;
	}
	
	public java.lang.Object getLoweredPath() {
		return this.loweredPath;
	}
	
	private Application application;
	
	public void setApplication(Application application){
		this.application = application;
	}
	
	public Application getApplication() {
		return application;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("ApplicationId",getApplicationId())
			.append("PathId",getPathId())
			.append("Path",getPath())
			.append("LoweredPath",getLoweredPath())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getPathId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof Paths == false) return false;
		if(this == obj) return true;
		Paths other = (Paths)obj;
		return new EqualsBuilder()
			.append(getPathId(),other.getPathId())
			.isEquals();
	}
}

